/*
 * Copyright 2023 Salesforce, Inc. All rights reserved.
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.test.provided.dependency;

import org.mule.runtime.api.connection.ConnectionException;
import org.mule.runtime.api.connection.ConnectionProvider;
import org.mule.runtime.api.connection.ConnectionValidationResult;

public class ProvidedDependencyConnectionProvider implements ConnectionProvider<FakeConnection> {

  @Override
  public FakeConnection connect() throws ConnectionException {
    return new FakeConnection();
  }

  @Override
  public void disconnect(FakeConnection connection) {}

  @Override
  public ConnectionValidationResult validate(FakeConnection connection) {
    return ConnectionValidationResult.success();
  }

}
